﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;

namespace IRepository
{
    public interface IBaseRepository
    {
        bool Exists(string id);
        bool Add(BaseEntity entity);
        bool Update(BaseEntity entity);
        bool Delete(string id);
        bool Delete(List<string> listID);
        BaseEntity Get(string id);
        IQueryable<BaseEntity > GetList(string strWhere);
        int GetRecordCount(string strWhere);
        IQueryable<BaseEntity > GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
    }
}
